package com.elive.controller.customer;

import com.elive.common.ServerResponse;
import com.elive.pojo.User;
import com.elive.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by wuyin on 2018/4/5.
 */
@Controller
@RequestMapping("/customer/host")
public class HostController {

    @Autowired
    private IUserService iUserService;

    @RequestMapping(value = "getHostInfo.do", method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse getHostInfo(Integer hostId) {
        return iUserService.getUserInfo(hostId);
    }


}
